#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include<vector>

using namespace std;

vector<int> numOfBurgers(int tomatoSlices, int cheeseSlices) {
    //x + y = c
    //4x + 2y = t
    //4(c - y) + 2y = t
    //4c - 4y + 2y = t
    //4c - 2y = t
    //y = (4c - t) / 2
    //x = c - y

    if ((4 * cheeseSlices - tomatoSlices) < 0 || (4 * cheeseSlices - tomatoSlices) % 2 != 0)    return {};
    int y = (4 * cheeseSlices - tomatoSlices) / 2;
    int x = cheeseSlices - y;

    if (x < 0)   return {};

    return { x,y };
}